module.exports = function (app) {
  app.get('/', function (req, res) {
    res.render('index', { title: 'Express' });
  });

  app.get('/index', function (req, res) {
    res.render('index', { title: 'Express' });
  });

  app.use('/single', require('./single'));
  app.use('/contact', require('./contact'));
  app.use('/about', require('./about'));


  app.use('/login', require('./BlogManager/login'));


  // 404 page
  app.use(function (req, res) {
    if (!res.headersSent) {
      res.status(404).render('404');
    }
  });
};
